package com.panda.sys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.panda.utils.contantUtil;

/**
 * 仪表盘管理
 *
 */
@Controller
@RequestMapping("/index")
public class IndexController {
	
	
	@RequestMapping("/dashBoard")
	public String dashBoard(Model model){
		
		//获取今日发布的商标购买申请
		Long todayApplyTradeCount = 0L;// applyService.queryTodayApplyNum(null, contantUtil.TRADE);
		//获取今日发布的公司购买申请
		Long todayApplyComCount = 0L;// applyService.queryTodayApplyNum(null, contantUtil.COMPANY);
		
		//获取今日发布的商标转让申请
		Long todayTransferTradeCount = 0L;//transferService.findTodayTransferNum(null, contantUtil.TRADE);
		//获取今日发布的商标转让申请
		Long todayTransferComCount = 0L;//transferService.findTodayTransferNum(null, contantUtil.COMPANY);
		
		//今日发布到的商标数量
		Long todayTradeCount =  0L;//goodService.findTodayCount(null, contantUtil.TRADE);
		//今日发布到的公司数量
		Long todayComCount =  0L;//goodService.findTodayCount(null, contantUtil.PATENT);
		
		model.addAttribute("todayApplyTradeCount", todayApplyTradeCount);
		model.addAttribute("todayApplyComCount", todayApplyComCount);
		model.addAttribute("todayTransferTradeCount", todayTransferTradeCount);
		model.addAttribute("todayTransferComCount", todayTransferComCount);
		model.addAttribute("todayTradeCount", todayTradeCount);
		model.addAttribute("todayComCount", todayComCount);
		//在线人数
		model.addAttribute("sessionCount", contantUtil.sessionCount);
		return "system/dashBoard";
	}
	
	
	
	
	
}
